<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>Title</title>
</head>
<body>
<script type="text/javascript" src="js/jquery-1.8.3.js"></script>
</body>
<script>
    $(function () {
        var msg = {
            username: "索尼",
            password: "321",
            news: {
                title: "手机",
                content: "智能"
            }
        };

        $.ajax({
            type: "POST",
            contentType: "application/json",
            data: JSON.stringify(msg),
            dataType: "json",
            url: "requestBody_two",
            success: function (result) {
                alert(result.newsList[0].title);
            }
        })
    })
</script>
</html>
